export const mockDataSource: any[] = [
  {
    id: '1',
    station: '大山台一期',
    tradeDirection: '2',
    contractName: '天润平鲁蒋家坪II期2022年6月11-20日中旬分时段电力交易(集中竞价)合同305',
    content: '主合约',
    executionStartDate: '2022-05-31 12:23:09',
    executionEndDate: '2022-05-31 12:23:09',
    electricity: '209.7',
    averagePrice: '398.45',
    positionsCalculated: '2',
    contractSource: '2',
    children: makeChildren('1'),
  },
  {
    id: '2',
    station: '大山台一期',
    tradeDirection: '2',
    contractName: '天润平鲁蒋家坪II期2022年6月11-20日中旬分时段电力交易(集中竞价)合同305',
    content: '主合约',
    executionStartDate: '2022-05-31 12:23:09',
    executionEndDate: '2022-05-31 12:23:09',
    electricity: '209.7',
    averagePrice: '398.45',
    positionsCalculated: '2',
    contractSource: '2',
    children: makeChildren('2'),
  },
  {
    id: '3',
    station: '大山台一期',
    tradeDirection: '2',
    contractName: '天润平鲁蒋家坪II期2022年6月11-20日中旬分时段电力交易(集中竞价)合同305',
    content: '主合约',
    executionStartDate: '2022-05-31 12:23:09',
    executionEndDate: '2022-05-31 12:23:09',
    electricity: '209.7',
    averagePrice: '398.45',
    positionsCalculated: '2',
    contractSource: '2',
    children: makeChildren('3'),
  },
  {
    id: '4',
    station: '大山台一期',
    tradeDirection: '2',
    contractName: '天润平鲁蒋家坪II期2022年6月11-20日中旬分时段电力交易(集中竞价)合同305',
    content: '主合约',
    executionStartDate: '2022-05-31 12:23:09',
    executionEndDate: '2022-05-31 12:23:09',
    electricity: '209.7',
    averagePrice: '398.45',
    positionsCalculated: '2',
    contractSource: '2',
    children: makeChildren('4'),
  },
  {
    id: '5',
    station: '大山台五期',
    tradeDirection: '2',
    contractName: '天润平鲁蒋家坪II期2022年6月11-20日中旬分时段电力交易(集中竞价)合同305',
    content: '主合约',
    executionStartDate: '2022-05-31 12:23:09',
    executionEndDate: '2022-05-31 12:23:09',
    electricity: '209.7',
    averagePrice: '398.45',
    positionsCalculated: '2',
    contractSource: '2',
  },
];

export function makeChildren(prefix: string) {
  return [
    {
      id: `${prefix}-1`,
      station: '大山台一期',
      tradeDirection: '2',
      contractName: '天润平鲁蒋家坪II期2022年6月11-20日中旬分时段电力交易(集中竞价)合同305',
      content: '主合约',
      executionStartDate: '2022-05-31 12:23:09',
      executionEndDate: '2022-05-31 12:23:09',
      electricity: '209.7',
      averagePrice: '398.45',
      positionsCalculated: '2',
      contractSource: '2',
    },
    {
      id: `${prefix}-2`,
      station: '大山台一期',
      tradeDirection: '2',
      contractName: '天润平鲁蒋家坪II期2022年6月11-20日中旬分时段电力交易(集中竞价)合同305',
      content: '主合约',
      executionStartDate: '2022-05-31 12:23:09',
      executionEndDate: '2022-05-31 12:23:09',
      electricity: '209.7',
      averagePrice: '398.45',
      positionsCalculated: '2',
      contractSource: '2',
    },
    {
      id: `${prefix}-3`,
      station: '大山台一期',
      tradeDirection: '2',
      contractName: '天润平鲁蒋家坪II期2022年6月11-20日中旬分时段电力交易(集中竞价)合同305',
      content: '主合约',
      executionStartDate: '2022-05-31 12:23:09',
      executionEndDate: '2022-05-31 12:23:09',
      electricity: '209.7',
      averagePrice: '398.45',
      positionsCalculated: '2',
      contractSource: '2',
    },
  ];
}
